﻿@{
    var cityName = "";
    if (Session["cityName"] != null)
    {
        cityName = Session["cityName"].ToString();
    } 
}
<!DOCTYPE html>
<html>
<head>
    <title>呷饭网</title>
    <meta name="description" content="呷饭网" />
    <meta name="keywords" content="呷饭网" />
    <meta name="copyright" content="www.sweetwill.com" /> 
    <link href="@Url.Content("~/Content/skin1/homepage.css")" rel="stylesheet" /> 
    <link href="@Url.Content("~/Content/skin1/StyleSheet1.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.24.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="~/scripts/datepicker/WdatePicker.js"></script>
    <script src="~/Scripts/layout.js"></script>
    <script type="text/javascript" src="~/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script src="~/Scripts/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=9hKFxXfINYjmgLFnKg4Mty0r"></script>
    <script>
        $(function () { 
            $("form").Validform({
                tiptype: 3
            });


            $('.sectSere').click(function () {
                if ($(this).hasClass('more2')) {
                    $(this).removeClass('more2');
                    $(this).siblings('.hidden').hide();
                }
                else {
                    $(this).addClass('more2');
                    $(this).siblings('.hidden').show();
                }
            });
        });

        function myFun(result) {
            if ("@cityName" == "") {
               var cityName = result.name;
               $("#city").html(cityName);
           } else {
               $("#city").html("@cityName");
            }
           /* alert("当前定位城市:" + cityName);*/
        }
        var myCity = new BMap.LocalCity();
        myCity.get(myFun);
    </script>
</head>
<body>
    <header>
        <div id="header">
            <div class="topbar">
                
                @Html.Partial("_UserLogin")
            </div>
        </div>
    </header>
    <div id="content" class="usercenter">
        @RenderSection("featured", required: false)

        <div id="sideContent" style="margin-left: 0;">
            @{
                Html.RenderPartial("_UserNav");
            }
        </div>
        <div id="mainContent">
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        @RenderSection("Scripts", false)
    </div>
    <footer>

        <div id="footer">
            @Html.Partial("_footer")
        </div>
    </footer>
</body>
</html>
